/// code : "string"
/// data : {"content":[{"id":0,"ada":"string","amwayId":"string","auditStatus":"NONE","createTime":0,"description":"string","displayAudits":[{"id":0,"data":"string","no":0,"propertyNameTip":"PG_NICK","resourceType":"TEXT","status":"NONE"}],"no":0,"officialFlag":"NO","product":{"businessType":"string","classCode":"string","currency":"string","picture":"string","price":0,"priceList":[{"businessVolume":0,"currency":"string","giftPoint":0,"pointValue":0,"price":0,"saleStatus":"string","skuCode":"string"}],"productCode":"string","productName":"string","saleStatus":"string","skuCode":"string","skuName":"string"},"publishStatus":"UN_PUBLISH","sortId":"string"}],"number":0,"numberOfElements":0,"size":0,"totalElements":0,"totalPages":0}
/// message : "string"

class HaowuRecommendProduct {
  String _code;
  HaowuData _data;
  String _message;

  String get code => _code;
  HaowuData get data => _data;
  String get message => _message;

  HaowuRecommendProduct({
      String code, 
      HaowuData data,
      String message}){
    _code = code;
    _data = data;
    _message = message;
}

  HaowuRecommendProduct.fromJson(dynamic json) {
    _code = json["code"];
    _data = json["data"] != null ? HaowuData.fromJson(json["data"]) : null;
    _message = json["message"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["code"] = _code;
    if (_data != null) {
      map["data"] = _data.toJson();
    }
    map["message"] = _message;
    return map;
  }

}

/// content : [{"id":0,"ada":"string","amwayId":"string","auditStatus":"NONE","createTime":0,"description":"string","displayAudits":[{"id":0,"data":"string","no":0,"propertyNameTip":"PG_NICK","resourceType":"TEXT","status":"NONE"}],"no":0,"officialFlag":"NO","product":{"businessType":"string","classCode":"string","currency":"string","picture":"string","price":0,"priceList":[{"businessVolume":0,"currency":"string","giftPoint":0,"pointValue":0,"price":0,"saleStatus":"string","skuCode":"string"}],"productCode":"string","productName":"string","saleStatus":"string","skuCode":"string","skuName":"string"},"publishStatus":"UN_PUBLISH","sortId":"string"}]
/// number : 0
/// numberOfElements : 0
/// size : 0
/// totalElements : 0
/// totalPages : 0

class HaowuData {
  List<HaowuContent> _content;
  int _number;
  int _numberOfElements;
  int _size;
  int _totalElements;
  int _totalPages;

  List<HaowuContent> get content => _content;
  int get number => _number;
  int get numberOfElements => _numberOfElements;
  int get size => _size;
  int get totalElements => _totalElements;
  int get totalPages => _totalPages;

  HaowuData({
      List<HaowuContent> content,
      int number, 
      int numberOfElements, 
      int size, 
      int totalElements, 
      int totalPages}){
    _content = content;
    _number = number;
    _numberOfElements = numberOfElements;
    _size = size;
    _totalElements = totalElements;
    _totalPages = totalPages;
}

  HaowuData.fromJson(dynamic json) {
    if (json["content"] != null) {
      _content = [];
      json["content"].forEach((v) {
        _content.add(HaowuContent.fromJson(v));
      });
    }
    _number = json["number"];
    _numberOfElements = json["numberOfElements"];
    _size = json["size"];
    _totalElements = json["totalElements"];
    _totalPages = json["totalPages"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    if (_content != null) {
      map["content"] = _content.map((v) => v.toJson()).toList();
    }
    map["number"] = _number;
    map["numberOfElements"] = _numberOfElements;
    map["size"] = _size;
    map["totalElements"] = _totalElements;
    map["totalPages"] = _totalPages;
    return map;
  }

}

/// id : 0
/// ada : "string"
/// amwayId : "string"
/// auditStatus : "NONE"
/// createTime : 0
/// description : "string"
/// displayAudits : [{"id":0,"data":"string","no":0,"propertyNameTip":"PG_NICK","resourceType":"TEXT","status":"NONE"}]
/// no : 0
/// officialFlag : "NO"
/// product : {"businessType":"string","classCode":"string","currency":"string","picture":"string","price":0,"priceList":[{"businessVolume":0,"currency":"string","giftPoint":0,"pointValue":0,"price":0,"saleStatus":"string","skuCode":"string"}],"productCode":"string","productName":"string","saleStatus":"string","skuCode":"string","skuName":"string"}
/// publishStatus : "UN_PUBLISH"
/// sortId : "string"

class HaowuContent {
  int _id;
  String _ada;
  String _amwayId;
  String _auditStatus;
  int _createTime;
  String _description;
  List<DisplayAudits> _displayAudits;
  int _no;
  String _officialFlag;
  HaowuProduct _product;
  String _publishStatus;
  String _sortId;

  int get id => _id;
  String get ada => _ada;
  String get amwayId => _amwayId;
  String get auditStatus => _auditStatus;
  int get createTime => _createTime;
  String get description => _description;
  List<DisplayAudits> get displayAudits => _displayAudits;
  int get no => _no;
  String get officialFlag => _officialFlag;
  HaowuProduct get product => _product;
  String get publishStatus => _publishStatus;
  String get sortId => _sortId;

  HaowuContent({
      int id, 
      String ada, 
      String amwayId, 
      String auditStatus, 
      int createTime, 
      String description, 
      List<DisplayAudits> displayAudits, 
      int no, 
      String officialFlag, 
      HaowuProduct product,
      String publishStatus, 
      String sortId}){
    _id = id;
    _ada = ada;
    _amwayId = amwayId;
    _auditStatus = auditStatus;
    _createTime = createTime;
    _description = description;
    _displayAudits = displayAudits;
    _no = no;
    _officialFlag = officialFlag;
    _product = product;
    _publishStatus = publishStatus;
    _sortId = sortId;
}

  HaowuContent.fromJson(dynamic json) {
    _id = json["id"];
    _ada = json["ada"];
    _amwayId = json["amwayId"];
    _auditStatus = json["auditStatus"];
    _createTime = json["createTime"];
    _description = json["description"];
    if (json["displayAudits"] != null) {
      _displayAudits = [];
      json["displayAudits"].forEach((v) {
        _displayAudits.add(DisplayAudits.fromJson(v));
      });
    }
    _no = json["no"];
    _officialFlag = json["officialFlag"];
    _product = json["product"] != null ? HaowuProduct.fromJson(json["product"]) : null;
    _publishStatus = json["publishStatus"];
    _sortId = json["sortId"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["id"] = _id;
    map["ada"] = _ada;
    map["amwayId"] = _amwayId;
    map["auditStatus"] = _auditStatus;
    map["createTime"] = _createTime;
    map["description"] = _description;
    if (_displayAudits != null) {
      map["displayAudits"] = _displayAudits.map((v) => v.toJson()).toList();
    }
    map["no"] = _no;
    map["officialFlag"] = _officialFlag;
    if (_product != null) {
      map["product"] = _product.toJson();
    }
    map["publishStatus"] = _publishStatus;
    map["sortId"] = _sortId;
    return map;
  }

}

/// businessType : "string"
/// classCode : "string"
/// currency : "string"
/// picture : "string"
/// price : 0
/// priceList : [{"businessVolume":0,"currency":"string","giftPoint":0,"pointValue":0,"price":0,"saleStatus":"string","skuCode":"string"}]
/// productCode : "string"
/// productName : "string"
/// saleStatus : "string"
/// skuCode : "string"
/// skuName : "string"

class HaowuProduct {
  String _businessType;
  String _classCode;
  String _currency;
  String _picture;
  int _price;
  List<HaowuPrice> _priceList;
  String _productCode;
  String _productName;
  String _saleStatus;
  String _skuCode;
  String _skuName;

  String get businessType => _businessType;
  String get classCode => _classCode;
  String get currency => _currency;
  String get picture => _picture;
  int get price => _price;
  List<HaowuPrice> get priceList => _priceList;
  String get productCode => _productCode;
  String get productName => _productName;
  String get saleStatus => _saleStatus;
  String get skuCode => _skuCode;
  String get skuName => _skuName;

  HaowuProduct({
      String businessType, 
      String classCode, 
      String currency, 
      String picture, 
      int price, 
      List<HaowuPrice> priceList,
      String productCode, 
      String productName, 
      String saleStatus, 
      String skuCode, 
      String skuName}){
    _businessType = businessType;
    _classCode = classCode;
    _currency = currency;
    _picture = picture;
    _price = price;
    _priceList = priceList;
    _productCode = productCode;
    _productName = productName;
    _saleStatus = saleStatus;
    _skuCode = skuCode;
    _skuName = skuName;
}

  HaowuProduct.fromJson(dynamic json) {
    _businessType = json["businessType"];
    _classCode = json["classCode"];
    _currency = json["currency"];
    _picture = json["picture"];
    _price = json["price"];
    if (json["priceList"] != null) {
      _priceList = [];
      json["priceList"].forEach((v) {
        _priceList.add(HaowuPrice.fromJson(v));
      });
    }
    _productCode = json["productCode"];
    _productName = json["productName"];
    _saleStatus = json["saleStatus"];
    _skuCode = json["skuCode"];
    _skuName = json["skuName"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["businessType"] = _businessType;
    map["classCode"] = _classCode;
    map["currency"] = _currency;
    map["picture"] = _picture;
    map["price"] = _price;
    if (_priceList != null) {
      map["priceList"] = _priceList.map((v) => v.toJson()).toList();
    }
    map["productCode"] = _productCode;
    map["productName"] = _productName;
    map["saleStatus"] = _saleStatus;
    map["skuCode"] = _skuCode;
    map["skuName"] = _skuName;
    return map;
  }

}

/// businessVolume : 0
/// currency : "string"
/// giftPoint : 0
/// pointValue : 0
/// price : 0
/// saleStatus : "string"
/// skuCode : "string"

class HaowuPrice {
  int _businessVolume;
  String _currency;
  int _giftPoint;
  int _pointValue;
  int _price;
  String _saleStatus;
  String _skuCode;

  int get businessVolume => _businessVolume;
  String get currency => _currency;
  int get giftPoint => _giftPoint;
  int get pointValue => _pointValue;
  int get price => _price;
  String get saleStatus => _saleStatus;
  String get skuCode => _skuCode;

  HaowuPrice({
      int businessVolume, 
      String currency, 
      int giftPoint, 
      int pointValue, 
      int price, 
      String saleStatus, 
      String skuCode}){
    _businessVolume = businessVolume;
    _currency = currency;
    _giftPoint = giftPoint;
    _pointValue = pointValue;
    _price = price;
    _saleStatus = saleStatus;
    _skuCode = skuCode;
}

  HaowuPrice.fromJson(dynamic json) {
    _businessVolume = json["businessVolume"];
    _currency = json["currency"];
    _giftPoint = json["giftPoint"];
    _pointValue = json["pointValue"];
    _price = json["price"];
    _saleStatus = json["saleStatus"];
    _skuCode = json["skuCode"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["businessVolume"] = _businessVolume;
    map["currency"] = _currency;
    map["giftPoint"] = _giftPoint;
    map["pointValue"] = _pointValue;
    map["price"] = _price;
    map["saleStatus"] = _saleStatus;
    map["skuCode"] = _skuCode;
    return map;
  }

}

/// id : 0
/// data : "string"
/// no : 0
/// propertyNameTip : "PG_NICK"
/// resourceType : "TEXT"
/// status : "NONE"

class DisplayAudits {
  int _id;
  String _data;
  int _no;
  String _propertyNameTip;
  String _resourceType;
  String _status;

  int get id => _id;
  String get data => _data;
  int get no => _no;
  String get propertyNameTip => _propertyNameTip;
  String get resourceType => _resourceType;
  String get status => _status;

  DisplayAudits({
      int id, 
      String data, 
      int no, 
      String propertyNameTip, 
      String resourceType, 
      String status}){
    _id = id;
    _data = data;
    _no = no;
    _propertyNameTip = propertyNameTip;
    _resourceType = resourceType;
    _status = status;
}

  DisplayAudits.fromJson(dynamic json) {
    _id = json["id"];
    _data = json["data"];
    _no = json["no"];
    _propertyNameTip = json["propertyNameTip"];
    _resourceType = json["resourceType"];
    _status = json["status"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["id"] = _id;
    map["data"] = _data;
    map["no"] = _no;
    map["propertyNameTip"] = _propertyNameTip;
    map["resourceType"] = _resourceType;
    map["status"] = _status;
    return map;
  }

}